package com.cheng.project.library.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author cheng
 * @since 2018-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tbl_borrow")
@ApiModel(value="BorrowPo对象", description="")
public class BorrowPo extends SuperPo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "书本id")
    private Long bookId;

    @ApiModelProperty(value = "借阅人id")
    private Long userId;

    @ApiModelProperty(value = "借阅时长")
    private Integer borrowDate;

    @ApiModelProperty(value = "还书最终时间")
    private LocalDateTime borrowEndTime;

    @ApiModelProperty(value = "是否归还")
    private Boolean isReturn;

    @ApiModelProperty(value = "归还需要填入归还时间")
    private LocalDateTime returnTime;

}
